package com.zjx.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * @author zhaojiaxu
 * @date 2021/06/30 19:50
 * controller service component  con + bean  beanFactory.rigsterBeandef..
 **/
@Component("b")
public  class B {
//	@Autowired

	private A a;

    @Autowired
	public void setA(A a) {
		this.a = a;
	}

	public B(){
		System.out.print("B...构造...");
	}
}

